﻿using System.Collections.Generic;
using com.guojin.core.io;
using com.guojin.core.io.message;


namespace com.guojin.mj.net.message.game
{
    public class CurrentPlayerWarRecordRet: Message
    {
        public static int TYPE = 12 ;
        public static int ID =  43 ;

        public string name { get; set; }
        public int userId { get; set; }
        public int locationIndex { get; set; }
        public int takeInScore {get; set; }
        public int settleScore { get; set; }

        public void decode(Input _in)
        {
            name = _in.readString();
            userId = _in.readInt();
            locationIndex = _in.readInt();
            takeInScore = _in.readInt();
            settleScore = _in.readInt();
        }

        public void encode(Output _out)
        {       
        }

        public int getMessageId()
        {
            return ID;
        }

        public int getMessageType()
        {
            return TYPE;
        }

        public string toString()
        {
            return string.Format("CurrentPlayerWarRecordRet[name={0}, locationIndex={1}, takeInScore ={2}, settleScore = {3}]");
        }
    }
}